const { axios } = require('../../utils/http')
Page({
  data: {
    userList: []
  },
  onShow() {
    this.getUserList()
  },
  getUserList() {
    axios.get('/chat/lastSearch').then(res => {
      console.log(res)
      res.data.error === -1 &&
        this.setData({
          userList: res.data.data
        })
    })
  }
})
